package org.gc.contact.util;

import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

import org.apache.log4j.PropertyConfigurator;

public final class CommonUtil {
	
	static {
		initLog4J();
	}
	
	private CommonUtil() {}
	
	private static void initLog4J() {
		 InputStream in = CommonUtil.class.getResourceAsStream("/log4j.properties");
	     Properties props = new Properties();
	        try {
	            props.load(in);
	            PropertyConfigurator.configure(props);
	        } catch(IOException ex) {
	            System.out.println("Log4JLogger Create Exception:\n" + ex.getMessage());
	        }
	}
	
}	
